-- vim:ft=lua
require("colorizer").detach_from_buffer(0)
require("colorizer").attach_to_buffer(0, { AARRGGBB = true, css = true, mode = "foreground" })
--[[ SUCCESS
0xFf32A14B 0xFf32A14B
#32a14b

#F0F #FF00FF #FFF00F8F #F0F #FF00FF
#FF32A14B
#FFF00F8F
#F0F #F00
#FF00FF #F00
#FFF00F8F #F00

blue gray lightblue gray100 white gold blue
Blue LightBlue Gray100 White
White

#def #deadbeef

rgb(    31     12.90   50 /0.5) rgb(   10, 100 ,      100, 0.3)
rgb(30% 20% 50%) rgb(0,0,0) rgb(255 122 127 / 80%)
rgb(255 122 127 / .2) rgba(200,30,0,1) rgba(200,30,0,0.5) 

hsl(300 50% 50%) hsl(300 50% 50% / 1) hsl(100 80% 50% / 0.4) 
hsl(990 80% 50% / 0.4) hsl(720 80% 50% / 0.4)
hsl(1turn 80% 50% / 0.4) hsl(0.4turn 80% 50% / 0.4) hsl(1.4turn 80% 50% / 0.4)
hsla(300 50% 50%) hsla(300 50% 50% / 1)
hsla(300 50% 50% / 0.4) hsla(300,50%,50%,05)
hsla(360   ,  50%  ,  50%   ,  1.0000000000000001)
]]

--[[ FAIL
#---
#F0FF
#F0FFF
#F0FFF0F
#F0FFF0FFF
Blueberry Gray1000 BlueGree BlueGray
#define
#def0
matcher#add
rgb (10,255,100)
rgb(10, 1 00 ,  100)
hsl(300 50% 50% 1)
hsl(300 50% 50 / 1)
hsla(10 10% 10% 1)
hsla(300,50%,50,1.0000000000000001)
hsla(300,50,50,1.0000000000000001)
hsla(361,50,50,1.0000000000000001)
]]
